import {USER_STATE} from "@/utils/enums"

export default {

	state: {
		userInfo: {
		},
		state: USER_STATE.FREE
	},

	mutations: {
		setUserInfo(state, userInfo) {
			// 切换用户后，清理缓存
			// if(userInfo.id != state.userInfo.id){
			// 	this.commit("resetChatStore");
			// }
			state.userInfo = userInfo;
		},
		setUserState(state, userState) {
			state.state = userState;
		},
	}

}
